/* PICKFREE 搜索样式 - 从网页A移植 */

/* 头部区域样式 */
.dingbu {
    position: relative;
    overflow: visible;
    padding: 30px 0 20px;
    /* margin-bottom: 40px; */
    z-index: 100;
}

/* 确保与主内容区域的无缝衔接 */
.main-content {
    margin-top: 0;
}

/* 兼容现有样式 */
.favorite-navigation {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
}

/* Logo区域 */
.logo-area {
    text-align: center;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease-out;
}

.logo-area h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin: 0;
    background: linear-gradient(135deg, #f97316, #ec4899, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: glow 2s ease-in-out infinite alternate;
}

.logo-area p {
    color: #475569;
    font-size: 1.2rem;
    font-weight: 300;
}

/* 搜索区域 */
.search-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.search-wrapper {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50px;
    padding: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.search-wrapper:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

.search-form {
    display: flex;
    align-items: center;
    position: relative;
}

.search-select {
    position: relative;
    margin-right: 10px;
    z-index: 1000;
}

.search-engine-toggle {
    background: linear-gradient(135deg, #e0f2fe, #bae6fd);
    border: 1px solid #bae6fd;
    border-radius: 25px;
    color: #0c4a6e;
    padding: 12px 20px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    min-width: 120px;
    justify-content: center;
}

.search-engine-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(14, 165, 233, 0.2);
    background: linear-gradient(135deg, #bae6fd, #7dd3fc);
}

.search-engine-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-top: 10px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 9999;
}

.search-engine-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-engine-options {
    padding: 15px 0;
}

.search-engine-option {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
}

.search-engine-option:hover {
    background: linear-gradient(135deg, #e0f2fe, #bae6fd);
    color: #0c4a6e;
}

.search-engine-option.active {
    background: linear-gradient(135deg, #e0f2fe, #bae6fd);
    color: #0c4a6e;
}

.search-engine-icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
    filter: grayscale(100%);
}

.search-engine-option:hover .search-engine-icon,
.search-engine-option.active .search-engine-icon {
    filter: grayscale(0%);
    transform: scale(1.1);
}

.search-input-group {
    flex: 1;
    display: flex;
    align-items: center;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 15px 20px;
    font-size: 16px;
    background: transparent;
    color: #333;
}

.search-input::placeholder {
    color: #999;
}

.search-button {
    background: linear-gradient(135deg, #7dd3fc, #38bdf8);
    border: none;
    border-radius: 25px;
    color: white;
    padding: 12px 25px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(56, 189, 248, 0.4);
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
}


/* 动画效果 */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glow {
    from {
        filter: brightness(1.0);
    }
    to {
        filter: brightness(1.2);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .dingbu {
        padding: 40px 0 60px;
    }

    .logo-area h1 {
        font-size: 2.5rem;
    }

    .logo-area p {
        font-size: 1rem;
    }

    .search-container {
        padding: 0 15px;
    }

    .search-wrapper {
        padding: 6px;
    }

    .search-engine-toggle {
        padding: 10px 15px;
        font-size: 12px;
        min-width: 100px;
    }

    .search-input {
        padding: 12px 15px;
        font-size: 14px;
    }

    .search-button {
        padding: 10px 20px;
        font-size: 14px;
    }

    .search-engine-dropdown {
        min-width: 180px;
    }
}

@media (max-width: 480px) {
    .dingbu {
        padding: 30px 0 50px;
    }

    .logo-area h1 {
        font-size: 2rem;
    }

    .search-wrapper {
        flex-direction: column;
        gap: 10px;
        border-radius: 20px;
    }

    .search-form {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }

    .search-select {
        width: 100%;
        margin-right: 0;
    }

    .search-engine-toggle {
        width: 100%;
        justify-content: center;
    }

    .search-engine-dropdown {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        max-width: 300px;
        margin: 0;
    }

    .search-input-group {
        width: 100%;
    }

    .search-button {
        width: 100%;
        justify-content: center;
    }
}

/* 搜索引擎图标 - 使用Font Awesome图标 */
.search-engine-icon::before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #333;
    transition: color 0.3s ease;
}

.search-engine-icon.baidu::before { content: "\f1d0"; color: #2932E1; } /* 百度云图标 */
.search-engine-icon.sogou::before { content: "\f002"; color: #FB6E0A; } /* 搜索图标 */
.search-engine-icon.bing::before { content: "\f1a0"; color: #00809D; } /* 微软图标 */
.search-engine-icon.so360::before { content: "\f0ad"; color: #7B1FF2; } /* 工具图标 */
.search-engine-icon.google::before { content: "\f1a0"; color: #EA4335; } /* Google图标 */
.search-engine-icon.wangpan::before { content: "\f07b"; color: #FF6B35; } /* 文件夹图标 */
.search-engine-icon.yingshi::before { content: "\f008"; color: #E91E63; } /* 视频图标 */
.search-engine-icon.youhui::before { content: "\f295"; color: #FF9800; } /* 标签图标 */

/* 搜索引擎选项悬停效果 */
.search-engine-option:hover .search-engine-icon::before,
.search-engine-option.active .search-engine-icon::before {
    color: #0c4a6e;
}